package top.healthylife.gateway.platform.jg.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.jg.api.util.JGHttpUtil;
import top.healthylife.gateway.platform.jg.dto.riskjcdt.req.JGReqRiskJcdtDto;
import top.healthylife.gateway.platform.jg.dto.riskjcdt.res.JGResRiskJcdtDto;

/**
 * 极光风控JCDT因子
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "极光风控JCDT因子" , info = "极光风控JCDT因子")
public class JGRiskjcdtApi implements ParentFace<JGReqRiskJcdtDto, JGResRiskJcdtDto> {

    private static final String API_NAME = "/v1/ctm/risk/jcdt/factors";

    @Override
    public JGResRiskJcdtDto execute(JGReqRiskJcdtDto reqDto){
        return JGHttpUtil.httpGetRequest(reqDto,API_NAME, JGResRiskJcdtDto.class);
    }
}
